.weather-card {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  border-radius: 20px;
  padding: 24px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weather-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.weather-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.city-name {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(180deg);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  gap: 20px;
}

.weather-icon {
  font-size: 80px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.temperature {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.temp-value {
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.temp-unit {
  font-size: 24px;
  font-weight: 400;
  margin-top: 8px;
  opacity: 0.9;
}

.weather-description {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  text-transform: capitalize;
  opacity: 0.95;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-item {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: background 0.3s ease;
}

.detail-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.detail-label {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.weather-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
}

.update-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.8;
}

.update-time {
  font-weight: 400;
}

.cache-indicator {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.cache-indicator:hover {
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .weather-card {
    margin: 0 16px;
    padding: 20px;
  }
  
  .city-name {
    font-size: 20px;
  }
  
  .weather-icon {
    font-size: 60px;
  }
  
  .temp-value {
    font-size: 48px;
  }
  
  .temp-unit {
    font-size: 18px;
  }
  
  .weather-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .detail-item {
    padding: 10px;
  }
}